/*
 * @Description: 手动记录管理
 */
import zhreq from "@/api/axios";
export default {
  /**
   * @description: 获取种养品种 *代表必填
   * @param {String/Number} page *
   * @param {String/Number} size *
   */
  getlist(params) {
    return zhreq.post("/plantVariety/queryPageList", {
      ...params,
      order: 'asc',
      auditFlag: 1,
      entity: {
      // "organizationNo": 0
      }
    });
  },
  /**
   * @description:模糊查询种养品种表格列表 *代表必填
   */
  getqueryList(params) {
    return zhreq.post("/plantVariety/queryByCondition", {
      auditFlag: 1,
      varietyNameLike: params
    });
  },
  /**
   * @description: 批量添加种养品种
   * @param {Object}  *
   */
  addlist(params) {
    return zhreq.post('/plantVariety/add', params);
  },
  /**
   * @description: 批量删除种养品种
   * @param {Object}  *
   */
  dellist(params) {
    return zhreq.post('/plantVariety/delList', {
      'plantVarietyIdList': params
    });
  },
  /**
   * @description: 修改种养品种
   * @param {Object}  *
   */
  editlist(params) {
    return zhreq.post('/plantVariety/edit', params);
  },
  /**
   * @description: 通过种养类别查种养品种
   * @param {Object}  *
   */
  querybycondition(params) {
    return zhreq.post('/plantVariety/queryByCondition', {
      ...params
    });
  }
};
